package com.teyao.teyao_back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
@Data
@TableName(value = "user")
@Schema(name = "user",description = "用户类")
public class User {
    @TableId(type = IdType.AUTO)
    @Schema(description = "用户主键id")
    private Integer userId;
    @TableField(value = "username")
    private String username;
    private String password;
    private String phone;
    private Integer roleId;
}